package com.example.gulimall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.gulimall.common.utils.PageUtils;
import com.example.gulimall.ware.entity.PurchaseEntity;
import com.example.gulimall.ware.vo.MergeVo;
import com.example.gulimall.ware.vo.PurchaseDoneVo;

import java.util.List;
import java.util.Map;

/**
 * 采购单
 *
 * @author xie
 * @email 2949459108@gmail.com
 * @date 2024-03-11 22:38:58
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);


    /**
     * 查询未领取采购单
     * @return
     */
    PageUtils queryUnreceivePage(Map<java.lang.String, java.lang.Object> params);

    /**
     * 合并采购单
     */
    void mergePurchase(MergeVo mergeVo);

    /**
     * 领取采购单
     */
    void receivePurchase(List<java.lang.Long> ids);

    /**
     * 完成采购
     */
    void donePurchase(PurchaseDoneVo purchaseDoneVo);
}

